package com._520it.crm.web.controller;

import com._520it.crm.page.PageResult;
import com._520it.crm.query.UnderWritingQueryObject;
import com._520it.crm.service.IUnderWritingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/temporary")
public class TemporaryController {

    @Autowired
    private IUnderWritingService underWritingService;

    @RequestMapping("")
    public String index(){
        return "temporary";
    }

    @RequestMapping("/list")
    @ResponseBody
    public PageResult list(UnderWritingQueryObject qo) {
        PageResult result = null;
        result = underWritingService.queryPage(qo);
        return result;
    }

}
